﻿@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>统一身份认证 - 后台首页</title>
    <link type="text/css" href="~/Content/css/Home.css" rel="stylesheet" />
    <link type="text/css" href="~/Content/themes/default/easyui.css" rel="stylesheet" />
    <link type="text/css" href="~/Content/themes/icon.css" rel="stylesheet" />
    <script type="text/javascript" src="~/Scripts/jquery-1.12.4.min.js"></script>
    <script type="text/javascript" src="~/Scripts/jquery.easyui-1.4.5.min.js"></script>
    <script type="text/javascript" src="~/Scripts/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="~/Scripts/jquery.easyui.assist.js"></script>
    <script type="text/javascript" src="~/Scripts/messageBox.js"></script>
    <script type="text/javascript" src="~/Scripts/datetools.js"></script>
    <script type="text/javascript" src="~/Content/js/Home.js"></script>
</head>
<body class="easyui-layout">
    @*网站头部*@
    <div data-options="region:'north',split:false,border:false" id="dvHeader">
        @*左侧logo*@
        <div class="logo">统一身份认证后台管理</div>
        @*右侧内容*@
        <div class="rightBtns">
            @*注销用户、修改密码按钮*@
            <a class="easyui-linkbutton" data-options="iconCls: 'icon-cancel',plain:true" id="btn_exit" onclick="logout();">注销用户</a>
            <a class="easyui-linkbutton" data-options="iconCls: 'icon-lock',plain:true" id="btn_padlock" onclick="openChangePwd();">修改密码</a>
            <div class="welcomeLb">
                <span>欢迎您：@*@Model.RealName*@</span>
            </div>
        </div>
    </div>

    @*网站中部，内容部分*@
    <div data-options="region:'center'" id="dvContent">
        <div class="easyui-tabs" id="tabs" data-options="headerWidth:200,fit:true">
            <div data-options="title:'首页'" class="tabHome">
                <iframe src="http://cn.bing.com" style="width: 100%; height: 99%; border: 0;"></iframe>
            </div>
        </div>
    </div>

    @*网站左部，菜单部分*@
    <div data-options="region:'west',split:false" title="功能选项" id="dvMenu">
        <ul id="menuTree"></ul>
    </div>

    @*网站底部*@
    <div data-options="region:'south',border:false" id="dvFooter">
        <div class="currentUser">当前登录用户：@*@Model.UserName*@</div>
        <div class="service">
            <span>开发及技术支持&nbsp;——&nbsp;</span><a href="http://git.oschina.net/lishilei0523" target="_blank">SlamDunk co.,ltd.</a>&nbsp;&nbsp;<span id="nowDate"></span>
        </div>
    </div>

    @*修改密码对话框*@
    <div id="dvUpdatePwd">
        @using (Ajax.BeginForm("UpdatePassword", new { controller = "User" }, new AjaxOptions { OnSuccess = "updatedPwd" }, new { id = "fmUpdatePwd" }))
        {
        <input type="hidden" id="txtUserId" name="userId" value="" />
        <table style="width: 100%; text-align: right">
            <tr>
                <td>旧密码:</td>
                <td>@Html.Password("oldPwd")</td>
            </tr>
            <tr>
                <td>新密码:</td>
                <td>@Html.Password("newPwd")</td>
            </tr>
            <tr>
                <td>确认密码:</td>
                <td>@Html.Password("newPwd2")</td>
            </tr>
        </table>
        <div style="text-align: center; padding: 15px;">
            <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="changePwd();">保存</a>
            <a class="easyui-linkbutton" data-options="iconCls:'icon-reload'" onclick="javascript: $('#fmUpdatePwd').form('reset');">重置</a>
            <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" onclick="javascript: $('#dvUpdatePwd').window('close');">取消</a>
        </div>
        }
    </div>

    @*公共窗口*@
    <div id="commonWindow">
        <iframe id="comFrame" style="width: 100%; height: 99%; border: 0;"></iframe>
    </div>
</body>
</html>
